<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="${pageContext.request.contextPath }/resource/js/jquery-2.min.js"></script>
<title>调理方案管理后台</title>
<style>
        	.soluDiv{
        		background-color: antiquewhite;
        		width:600px;
        		margin:0 auto;
        	}
        	.solubody{
        		background-color: #C0C0C0;
        	}
        	.textarea{
        		height: 80px;
        		width:590px;
        	}
        	#tendency{
        		width:590px;
        	}
        	#corporeity{
        		width: 80px;
        	}

        </style>
</head>
<body class="solubody">
    	<div class="soluDiv" >
    		<form id="form" action="${pageContext.request.contextPath}/save" method="post">
    			<table>
    				<tr>
    					<td>体质表现：<textarea class="textarea"  id="performance" name="performance"></textarea></td>
    				</tr>
    				<tr>
    					<td>患病倾向：<textarea  id="tendency" name="tendency"></textarea></td>
    				</tr>
    				<tr>
    					<td>体&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;质：<select id="corporeity" name="corporeity">
    					</select></td>
    				</tr>
    				<tr>
    					<td>调理方案：<textarea  class="textarea"  id="toningSolutions" name="toningSolutions"></textarea><br></td>
    				</tr>
    				<tr>
    					<td>中医专家：<input type="text" id="doctor" name="doctor"/><br></td>
    				</tr>
    				<tr>
    				</tr>
    			</table>
    		</form>
    	</div>
    	<script type="text/javascript">
    	
    		$(function(){
    			var id = window.dialogArguments;
				$.ajax({
					type:"get",
					url:"${pageContext.request.contextPath}/querySolution.do",
					data:{id:id},
					success:function(data){
						var returnData = data;
						$("#performance").html(returnData.data.performance);
						$("#tendency").html(returnData.data.tendency);
						$("#toningSolutions").html(returnData.data.toningSolutions);
						$("#corporeity").html(returnData.corporeity);
					}
				})    			
    			
    		})
    		
    	</script>
</body>
</html>